<h2>Бонусные акции</h2>
<?php foreach($deals as $i => $deal) {?>
	<div class="bonus-deal">
		<?php echo CHtml::link($deal->title, Yii::app()->createUrl('deal/'. $deal->id)); ?>
		<?php echo $deal->short_description ?>
		<?php if($img = $deal->getMainImg()) : ?>
			<a href="<?php echo Yii::app()->createUrl('deal/'. $deal->id)?>">
				<img style="margin: 0.2em 0 0.5em;"  alt="image" src="/uploads/images/thumbnail_220_130_n/<?php echo $img['name'] ?>" />
			</a>
		<?php endif;?>
		<div class="discount_price">
			<?php echo $deal->discount?>% |
			<?php echo $deal->price?>руб.
		</div>
	</div>
<?php } ?>

